package com.wheat.vipcard.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.opensymphony.xwork2.ActionSupport;
import com.wheat.vipcard.utils.VipContant;

/**
 * 登录Action
 * 
 * @author JackLiang
 * @version 1.0
 * @date 2014-1-26
 */
public class LoginAction extends ActionSupport {

	private static final Logger LOG = LoggerFactory.getLogger(LoginAction.class);

	private static final long serialVersionUID = 1L;

	private HttpServletRequest request;

	private String userName;
	private String passWord;

	private String result;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	/**
	 * 登录方法
	 * 
	 * @return
	 */
	public String login() {
		request = ServletActionContext.getRequest();
		try {
			

		} catch (Exception e) {
			if (LOG.isErrorEnabled()) {
				LOG.error(VipContant.SYSTEM_ERROR_TITLE, e);
			}
		}

		return "";
	}

}
